#pragma once

#include <QtGui>

class CaptionButton : public QAbstractButton
{
public:
	CaptionButton(const QIcon &icon, QString toolTip);
	void setNowIcon(const QIcon &icon);

protected:
	virtual bool event(QEvent *e);
	virtual void paintEvent(QPaintEvent *e);

private:
	bool m_isUnder;	
};